package com.hibase.common.util;

import java.text.SimpleDateFormat;
import java.util.Date;

import cn.hutool.core.date.DateUtil;

public class DateUtils {

	public static String today() {
		return DateUtil.format(new Date(), new SimpleDateFormat("yyyyMMdd"));
	}

	public static String yesterday() {
		return DateUtil.format(DateUtil.yesterday(), new SimpleDateFormat("yyyyMMdd"));
	}

	public static String todayUnderline() {
		return DateUtil.format(new Date(), new SimpleDateFormat("yyyy_MM_dd"));
	}

	public static String yesterdayUnderline() {
		return DateUtil.format(DateUtil.yesterday(), new SimpleDateFormat("yyyy_MM_dd"));
	}

}
